﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002F7 RID: 759
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ClientObjDownloadData : IMessage<ClientObjDownloadData>, IMessage, IEquatable<ClientObjDownloadData>, IDeepCloneable<ClientObjDownloadData>, IBufferMessage
	{
		// Token: 0x170009D3 RID: 2515
		// (get) Token: 0x060021F5 RID: 8693 RVA: 0x0006004F File Offset: 0x0005E24F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ClientObjDownloadData> Parser
		{
			get
			{
				return ClientObjDownloadData._parser;
			}
		}

		// Token: 0x170009D4 RID: 2516
		// (get) Token: 0x060021F6 RID: 8694 RVA: 0x00060056 File Offset: 0x0005E256
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ClientObjDownloadDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170009D5 RID: 2517
		// (get) Token: 0x060021F7 RID: 8695 RVA: 0x00060068 File Offset: 0x0005E268
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ClientObjDownloadData.Descriptor;
			}
		}

		// Token: 0x060021F8 RID: 8696 RVA: 0x0006006F File Offset: 0x0005E26F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjDownloadData()
		{
		}

		// Token: 0x060021F9 RID: 8697 RVA: 0x00060090 File Offset: 0x0005E290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjDownloadData(ClientObjDownloadData other) : this()
		{
			this.dLJJALDBJDH_ = other.dLJJALDBJDH_;
			this.clientObjDownloadData_ = ((other.clientObjDownloadData_ != null) ? other.clientObjDownloadData_.Clone() : null);
			this.downloadDataList_ = other.downloadDataList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060021FA RID: 8698 RVA: 0x000600ED File Offset: 0x0005E2ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjDownloadData Clone()
		{
			return new ClientObjDownloadData(this);
		}

		// Token: 0x170009D6 RID: 2518
		// (get) Token: 0x060021FB RID: 8699 RVA: 0x000600F5 File Offset: 0x0005E2F5
		// (set) Token: 0x060021FC RID: 8700 RVA: 0x000600FD File Offset: 0x0005E2FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ByteString DLJJALDBJDH
		{
			get
			{
				return this.dLJJALDBJDH_;
			}
			set
			{
				this.dLJJALDBJDH_ = ProtoPreconditions.CheckNotNull<ByteString>(value, "value");
			}
		}

		// Token: 0x170009D7 RID: 2519
		// (get) Token: 0x060021FD RID: 8701 RVA: 0x00060110 File Offset: 0x0005E310
		// (set) Token: 0x060021FE RID: 8702 RVA: 0x00060118 File Offset: 0x0005E318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadData ClientObjDownloadData_
		{
			get
			{
				return this.clientObjDownloadData_;
			}
			set
			{
				this.clientObjDownloadData_ = value;
			}
		}

		// Token: 0x170009D8 RID: 2520
		// (get) Token: 0x060021FF RID: 8703 RVA: 0x00060121 File Offset: 0x0005E321
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ClientDownloadData> DownloadDataList
		{
			get
			{
				return this.downloadDataList_;
			}
		}

		// Token: 0x06002200 RID: 8704 RVA: 0x00060129 File Offset: 0x0005E329
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ClientObjDownloadData);
		}

		// Token: 0x06002201 RID: 8705 RVA: 0x00060138 File Offset: 0x0005E338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ClientObjDownloadData other)
		{
			return other != null && (other == this || (!(this.DLJJALDBJDH != other.DLJJALDBJDH) && object.Equals(this.ClientObjDownloadData_, other.ClientObjDownloadData_) && this.downloadDataList_.Equals(other.downloadDataList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002202 RID: 8706 RVA: 0x000601A0 File Offset: 0x0005E3A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DLJJALDBJDH.Length != 0)
			{
				num ^= this.DLJJALDBJDH.GetHashCode();
			}
			if (this.clientObjDownloadData_ != null)
			{
				num ^= this.ClientObjDownloadData_.GetHashCode();
			}
			num ^= this.downloadDataList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002203 RID: 8707 RVA: 0x00060205 File Offset: 0x0005E405
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002204 RID: 8708 RVA: 0x0006020D File Offset: 0x0005E40D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002205 RID: 8709 RVA: 0x00060218 File Offset: 0x0005E418
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DLJJALDBJDH.Length != 0)
			{
				output.WriteRawTag(10);
				output.WriteBytes(this.DLJJALDBJDH);
			}
			if (this.clientObjDownloadData_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.ClientObjDownloadData_);
			}
			this.downloadDataList_.WriteTo(ref output, ClientObjDownloadData._repeated_downloadDataList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002206 RID: 8710 RVA: 0x00060288 File Offset: 0x0005E488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DLJJALDBJDH.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeBytesSize(this.DLJJALDBJDH);
			}
			if (this.clientObjDownloadData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ClientObjDownloadData_);
			}
			num += this.downloadDataList_.CalculateSize(ClientObjDownloadData._repeated_downloadDataList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002207 RID: 8711 RVA: 0x000602F8 File Offset: 0x0005E4F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ClientObjDownloadData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DLJJALDBJDH.Length != 0)
			{
				this.DLJJALDBJDH = other.DLJJALDBJDH;
			}
			if (other.clientObjDownloadData_ != null)
			{
				if (this.clientObjDownloadData_ == null)
				{
					this.ClientObjDownloadData_ = new ClientDownloadData();
				}
				this.ClientObjDownloadData_.MergeFrom(other.ClientObjDownloadData_);
			}
			this.downloadDataList_.Add(other.downloadDataList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002208 RID: 8712 RVA: 0x00060376 File Offset: 0x0005E576
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002209 RID: 8713 RVA: 0x00060380 File Offset: 0x0005E580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 18U)
					{
						if (num != 26U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.downloadDataList_.AddEntriesFrom(ref input, ClientObjDownloadData._repeated_downloadDataList_codec);
						}
					}
					else
					{
						if (this.clientObjDownloadData_ == null)
						{
							this.ClientObjDownloadData_ = new ClientDownloadData();
						}
						input.ReadMessage(this.ClientObjDownloadData_);
					}
				}
				else
				{
					this.DLJJALDBJDH = input.ReadBytes();
				}
			}
		}

		// Token: 0x04000DDA RID: 3546
		private static readonly MessageParser<ClientObjDownloadData> _parser = new MessageParser<ClientObjDownloadData>(() => new ClientObjDownloadData());

		// Token: 0x04000DDB RID: 3547
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000DDC RID: 3548
		public const int DLJJALDBJDHFieldNumber = 1;

		// Token: 0x04000DDD RID: 3549
		private ByteString dLJJALDBJDH_ = ByteString.Empty;

		// Token: 0x04000DDE RID: 3550
		public const int ClientObjDownloadData_FieldNumber = 2;

		// Token: 0x04000DDF RID: 3551
		private ClientDownloadData clientObjDownloadData_;

		// Token: 0x04000DE0 RID: 3552
		public const int DownloadDataListFieldNumber = 3;

		// Token: 0x04000DE1 RID: 3553
		private static readonly FieldCodec<ClientDownloadData> _repeated_downloadDataList_codec = FieldCodec.ForMessage<ClientDownloadData>(26U, ClientDownloadData.Parser);

		// Token: 0x04000DE2 RID: 3554
		private readonly RepeatedField<ClientDownloadData> downloadDataList_ = new RepeatedField<ClientDownloadData>();
	}
}
